# CFLAG = -std=c++11 -I ../build/release-install-cpp11/include #CFLAG: 指定编译选项
# LFLAG = -L ../build/release-install-cpp11/lib -l muduo_net -l muduo_base -pthread #LFLAG: 指定链接选项  必须先muduo_net 再muduo_base

CFLAG= -std=c++11 -I ../../../build/release-install-cpp11/include/
LFLAG= -L ../../../build/release-install-cpp11/lib  -ljsoncpp -lmuduo_net -lmuduo_base -pthread

all:rpc_server rpc_client registry_server

registry_server : registry_server.cpp
	g++ -g $(CFLAG) $^  -o  $@  $(LFLAG)
rpc_server : rpc_server.cpp
	g++ -g $(CFLAG) $^  -o  $@  $(LFLAG)
rpc_client : rpc_client.cpp
	g++ -g $(CFLAG) $^  -o  $@  $(LFLAG)


.PHONY:clean
clean:
	rm -f rpc_server rpc_client registry_server